package com.xxwy.ddu.cms.authonrize.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author xxwy
 * @since 2018-09-05
 */
@NoArgsConstructor
@AllArgsConstructor
@TableName("bs_role_access")
public class RoleAccess extends Model<RoleAccess> {

    private static final long serialVersionUID = 1L;

    private Integer aId;

    private Integer rId;

    @TableId(value = "ac_id", type = IdType.AUTO)
    private Integer acId;

    private String acDescription;

    @TableLogic
    @TableField(value = "delete_flag")
    private Integer deleteFlag;

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public Integer getaId() {
        return aId;
    }

    public void setaId(Integer aId) {
        this.aId = aId;
    }
    public Integer getrId() {
        return rId;
    }

    public void setrId(Integer rId) {
        this.rId = rId;
    }
    public Integer getAcId() {
        return acId;
    }

    public void setAcId(Integer acId) {
        this.acId = acId;
    }
    public String getAcDescription() {
        return acDescription;
    }

    public void setAcDescription(String acDescription) {
        this.acDescription = acDescription;
    }

    @Override
    protected Serializable pkVal() {
        return this.acId;
    }

    @Override
    public String toString() {
        return "RoleAccess{" +
        "aId=" + aId +
        ", rId=" + rId +
        ", acId=" + acId +
        ", acDescription=" + acDescription +
        "}";
    }
}
